# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# TODO: bug 1172551 - get these tests working on iOS
if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'uikit':
    GeckoCppUnitTests([
        'jsep_session_unittest',
        'jsep_track_unittest',
        'mediaconduit_unittests',
        'sdp_file_parser',
        'sdp_unittests',
        'signaling_unittests',
    ])

include('/ipc/chromium/chromium-config.mozbuild')
include('common.build')

USE_LIBS += [
    '/media/webrtc/signalingtest/signaling_ecc/ecc',
    'mtransport_s',
]

if CONFIG['GNU_CXX']:
    CXXFLAGS += ['-Wno-error=shadow']

if CONFIG['_MSC_VER']:
    # This is intended as a temporary workaround to enable warning free building
    # with VS2015.
    # reinterpret_cast': conversion from 'DWORD' to 'HANDLE' of greater size
    CXXFLAGS += ['-wd4312']
